//
//  ClassifyToolBarsView.h
//  JinMaJiaDemo
//
//  Created by GripMeMory on 15/10/26.
//  Copyright © 2015年 GripMeMory. All rights reserved.
//

#import <UIKit/UIKit.h>

#pragma mark - BarButtonItem

typedef NS_ENUM(NSInteger, JMJClassifyState){
    JMJClassifyStateNormal,
    JMJClassifyStateAscend,
    JMJClassifyStateDescend
};

typedef NS_ENUM(NSInteger, JMJLayoutState){
    JMJLayoutStateNormal,
    JMJLayoutStateList,
    JMJLayoutStateCollection
};

typedef NS_ENUM(NSInteger, JMJButtonType) {
    JMJButtonTypeClassifyButton,
    JMJButtonTypeLayoutButton,
    JMJButtonTypeFiltrateButton
};

@interface ClassifyButton : UIBarButtonItem

@property(nonatomic, copy) NSString *title;
@property (nonatomic, assign) JMJClassifyState state;

@end

@interface LayoutButton : UIBarButtonItem

@property (nonatomic, strong) UIImage *image;

@end

@interface FiltrateButton : UIBarButtonItem

@end

#pragma mark - ToolBar

@interface ClassifyToolBarsView : UIView

@property (nonatomic, retain) NSArray *buttonList;

- (id)initWithButtonList:(NSArray *)list;

@end
